package nave.android.game;

import java.util.LinkedList;

public class ItensPlayer 
{
	private static ItensPlayer instance;
	
	private LinkedList<ITENS> ItensPegos = new LinkedList<ITENS>();
	
	
	public static ItensPlayer getInstance()
	{
		if(instance == null)
			instance = new ItensPlayer();
		
		return instance;
	}
	
	
	
	public void AddItem(ITENS i)
	{
		ItensPegos.add(i);
	}
	
	public void RemoveItem(ITENS i)
	{
		ItensPegos.remove(i);
	}
	
	public boolean TesteItemPego(ITENS i)
	{
		for (int j = 0; j < ItensPegos.size(); j++) 
		{
			if(i == ItensPegos.get(j))
				return true;
		}
		return false;
	}
	
	enum ITENS
	{
		ESPADA,
		CHAVE
	}

}
